/**
 * Project oo_thread
 */


#ifndef _THREAD_H
#define _THREAD_H
#include <thread>
#include "Task.h"
class Thread {
public: 
    
Thread(Task * task);
~Thread();
void start();
    
void join();
private: 
    pthread_t _pthid;
    bool _isRunning;
    Task * _task;
    
/**
 * @param void *
 */
static void * start_routine(void *);
    
void run();
};

#endif //_THREAD_H
